package com.qidian.mes.device.service.impl;

import com.qidian.common.pojo.MESResult;
import com.qidian.mes.device.mapper.ScmiMapper;
import com.qidian.mes.device.service.ScmiService;
import com.qidian.mes.pojo.Scmi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author 刘泽磊
 * @Company 起点编程
 * @Description
 * @Time 2024/10/18 14:03
 */
@Service
public class ScmiServiceImpl implements ScmiService {
    @Autowired
    private ScmiMapper scmiMapper;
    @Override
    public MESResult select(Scmi scmi) {
        return MESResult.success(scmiMapper.select(scmi));
    }
    @Override
    public MESResult insert(Scmi scmi) {
        return MESResult.success(scmiMapper.insert(scmi));
    }

    @Override
    public MESResult update(Scmi scmi) {
        return MESResult.success(scmiMapper.update(scmi));
    }

    @Override
    public MESResult selectById(Long scmiId) {
        return MESResult.success(scmiMapper.selectById(scmiId));
    }

    @Override
    public MESResult delete(Long scmiId) {
        return MESResult.success(scmiMapper.delete(scmiId));
    }
}
